<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>可以Ping通和DNS解析，但打不开网页的解决办法 - Feng&#39;s Blog - 大灰鼠的博客</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="Feng" /><meta name="description" content="早上收到朋友电话，说家里电脑因为安装了一个控件后来删除了，就出现电脑不能上网，具体的故障表现为：可以Ping通地址（不管是DNS，还是如网关" /><meta name="keywords" content="feng, 折腾人生, 电脑维修, 手机玩转, 技术心得, 拆机, 网站建设, 快乐悠悠, uu, 悠悠, 博客" />






<meta name="generator" content="Hugo 0.76.5 with theme even" />


<link rel="canonical" href="https://uu126.gitee.io/2016/285.html" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.c7bc1becf36bcf6a9ebd25d2947e43a2eb745ddb0c9a32b43126fd7fa460c351.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="可以Ping通和DNS解析，但打不开网页的解决办法" />
<meta property="og:description" content="早上收到朋友电话，说家里电脑因为安装了一个控件后来删除了，就出现电脑不能上网，具体的故障表现为：可以Ping通地址（不管是DNS，还是如网关" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://uu126.gitee.io/2016/285.html" />
<meta property="article:published_time" content="2016-03-13T11:09:00+00:00" />
<meta property="article:modified_time" content="2016-03-13T11:09:00+00:00" />
<meta itemprop="name" content="可以Ping通和DNS解析，但打不开网页的解决办法">
<meta itemprop="description" content="早上收到朋友电话，说家里电脑因为安装了一个控件后来删除了，就出现电脑不能上网，具体的故障表现为：可以Ping通地址（不管是DNS，还是如网关">
<meta itemprop="datePublished" content="2016-03-13T11:09:00+00:00" />
<meta itemprop="dateModified" content="2016-03-13T11:09:00+00:00" />
<meta itemprop="wordCount" content="1025">



<meta itemprop="keywords" content="维修," />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="可以Ping通和DNS解析，但打不开网页的解决办法"/>
<meta name="twitter:description" content="早上收到朋友电话，说家里电脑因为安装了一个控件后来删除了，就出现电脑不能上网，具体的故障表现为：可以Ping通地址（不管是DNS，还是如网关"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">Feng&#39;s Blog</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">Home</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">Archives</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">Tags</li>
      </a><a href="/links/">
        <li class="mobile-menu-item">Links</li>
      </a><a href="/ly/">
        <li class="mobile-menu-item">Ly</li>
      </a><a href="/about/">
        <li class="mobile-menu-item">About</li>
      </a>
  </ul>
</nav>
  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">Feng&#39;s Blog</a>
</div>

<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">Home</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">Archives</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">Tags</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/links/">Links</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/ly/">Ly</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about/">About</a>
      </li>
  </ul>
</nav>
    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">可以Ping通和DNS解析，但打不开网页的解决办法</h1>

      <div class="post-meta">
        <span class="post-time"> 2016-03-13 </span>
        <div class="post-category">
            <a href="/categories/it%E7%BB%BC%E5%90%88%E6%8A%80%E6%9C%AF/"> IT综合技术 </a>
            </div>
          <span class="more-meta"> 约 1025 字 </span>
          <span class="more-meta"> 预计阅读 3 分钟 </span>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents"></nav>
  </div>
</div>
    <div class="post-content">
      <p>早上收到朋友电话，说家里电脑因为安装了一个控件后来删除了，就出现电脑不能上网，具体的故障表现为：可以Ping通地址（不管是DNS，还是如网关、域名等都可以Ping通）；经检查，DNS设置也都正常（包括本地连接中的IP地址等信息都正确）；目前就是无法打开网页（感觉是网页打开的一瞬间就显示无网络连接），像QQ等也都上不去。一般碰到比较多的都是网页打不开，但QQ能上，那种DNS设置一下就OK了，这个嘛……一步一步排除解决吧。</p>
<p>首先，通过重启路由、sfc修复命令、重装驱动、更换网络等方式修复均无果，只好用带网络功能的PE来，结果发现在该系统下，网络正常。不知怎么的想起很久前用的一种修复网络方法，但很模糊，只记得&quot;winsock&quot;这个关键字，查了下微软的文档，然后解决啦，然后解决办法如下：</p>
<p>开始——运行——输入<code>cmd</code>回车——输入<code>netsh winsock reset</code>命令(重置winsock文件)——重启系统。</p>
<p><img   class="lazyload" data-src="https://cdn.uu126.cn/wp-content/uploads/2016/03/20160313105425.jpg" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="请输入图片描述" title="请输入图片描述" /></p>
<noscript>
  <img src="https://cdn.uu126.cn/wp-content/uploads/2016/03/20160313105425.jpg" alt="请输入图片描述" title="请输入图片描述" /> </p>
</noscript>
<p>其次，若按上面的复后仍然不行，那么尝试如下的修复方式：</p>
<p>1、删除下面这两个的注册表项(删除前先备份：右键——&gt;导出，如若有问题，可以恢复;删除后重启系统)：</p>
<pre><code class="lang-python">HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2</code></pre>
<p><img   class="lazyload" data-src="https://cdn.uu126.cn/wp-content/uploads/2016/03/20160313110358.jpg" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="请输入图片描述" title="请输入图片描述" /></p>
<noscript>
  <img src="https://cdn.uu126.cn/wp-content/uploads/2016/03/20160313110358.jpg" alt="请输入图片描述" title="请输入图片描述" /> </p>
</noscript>
<p>2、重装TCP/IP协议</p>
<p>1）右键单击网络连接，然后单击“属性”。</p>
<p>2）单击“安装”。</p>
<p>3）单击“协议”，然后单击“添加”。</p>
<p>4）单击“从磁盘安装”。</p>
<p>5）键入 <code>C:\Windows\inf</code>，然后单击“确定”。</p>
<p>6）在可用协议列表中，单击 <code>Internet 协议 (TCP/IP)</code>，然后单击“确定”。</p>
<p>7）重新启动系统。</p>
<p>注意：以上处理方式不是针对DNS解析问题(如能上QQ,不能打开网页)的，如果是DNS解析问题，尝试ping DNS服务器、更改DNS服务器、检查DNS Client服务状态登操作，DNS解析问题是不需要如上操作步骤。</p>
<p><img   class="lazyload" data-src="https://cdn.uu126.cn/wp-content/uploads/2016/03/20160313110556.jpg" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="请输入图片描述" title="请输入图片描述" /><br>
一般按照这么修复下来，大部分都是可以解决的，至少朋友的电脑已经可以上网了（对了，修得好记得要重启一下电脑哦）</p>
<noscript>
  <img src="https://cdn.uu126.cn/wp-content/uploads/2016/03/20160313110556.jpg" alt="请输入图片描述" title="请输入图片描述" /> <br />一般按照这么修复下来，大部分都是可以解决的，至少朋友的电脑已经可以上网了（对了，修得好记得要重启一下电脑哦）</p>
</noscript>
<p>顺带补充：（动态）公网IP环境80端口被封的几种解决方法</p>
<p>1）更换访问端口：将访问端口由80更改为其他端口，如70，更改后，访问网站时，需要带端口号访问。</p>
<p>2）URL显性转发：使用nat123域名解析的URL显性转发。</p>
<p>3）URL隐性转发：使用nat123域名解析的URL隐性转发。</p>
<p>4）80映射：使用nat123的80映射，并配置使用本地公网IP加速，发挥本地带宽优势。</p>
<p><img   class="lazyload" data-src="https://cdn.uu126.cn/wp-content/uploads/2016/03/20160313110741.jpg" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="请输入图片描述" title="请输入图片描述" /></p>
<noscript>
  <img src="https://cdn.uu126.cn/wp-content/uploads/2016/03/20160313110741.jpg" alt="请输入图片描述" title="请输入图片描述" /></p>
</noscript>
    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">Feng</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2016-03-13
        
    </span>
  </p>
  
  
</div>
<div class="post-reward">
  <input type="checkbox" name="reward" id="reward" hidden />
  <label class="reward-button" for="reward">赞赏支持</label>
  <div class="qr-code">
    
    <label class="qr-code-image" for="reward">
        <img class="image" src="https://cdn.uu126.cn/hugo/wechat.png">
        <span>微信打赏</span>
      </label>
    <label class="qr-code-image" for="reward">
        <img class="image" src="https://cdn.uu126.cn/hugo/alipay.png">
        <span>支付宝打赏</span>
      </label>
  </div>
</div><footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/%E7%BB%B4%E4%BF%AE/">维修</a>
          </div>
      <nav class="post-nav">
        <a class="prev" href="/2016/286.html">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">Apple Pay的设置及使用</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/2016/284.html">
            <span class="next-text nav-default">一个内存条引发的问题</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  
  <div id="vcomments"></div>
  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
  <script type="text/javascript">
    new Valine({
        el: '#vcomments' ,
        appId: '5sMkTX4FLjetFnfbOhaDTCDJ-9Nh9j0Va',
        appKey: '25KXCqIqAN142RQn4fBrsI87',
        notify:  false ,
        verify:  false ,
        avatar:'mm',
        placeholder: '说点什么吧...',
        visitor:  false 
    });
  </script>

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
  <a href="https://uu126.gitee.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="copyright-year">  
  Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pages</a> + <a href="https://cloud.tencent.com/redirect.php?redirect=1005&cps_key=4e78216aea817227ff0c96d93a00fd4b" target="_blank" rel="nofollow">腾讯云 + </a><a href="https://console.upyun.com/register/?invite=S1JeTquHL" target="_blank" rel="nofollow"><span class="with-love"><img src="https://cdn.lancn.cn/images/upyun.png" style="width:45px;vertical-align:middle;" alt="又拍云存储"></span></a>
   </span> 
  <div class="busuanzi-footer">
    <a target="_blank"  href="http://www.beian.miit.gov.cn">浙ICP备11026647号-3</a><span class="post-meta-divider"> | </span><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33088102001325"><span class="with-love"><img src="https://cdn.uu126.cn/icon-police.png" style="width:14px;"></span> 浙公网安备33088102001325号</a>
  </div>
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>
   

  

  <span class="copyright-year">
    &copy; 
    2012 - 
    2020<span class="heart"><i class="iconfont icon-heart"></i></span><span>Feng</span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  <script src="/lib/highlight/highlight.pack.js?v=20171001"></script>
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.c12618f9a600c40bd024996677e951e64d3487006775aeb22e200c990006c5c7.js"></script>








</body>
</html>
